/*
 * =====================================================================================
 *
 *       Filename:  hello.c
 *
 *    Description:  Hello world for embedded python application.
 *
 *        Version:  1.0
 *        Created:  11/08/2011 09:14:19 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  YOUR NAME (), 
 *        Company:  
 *
 * =====================================================================================
 */
// Don't forget to import "pythonXX.lib"!
// gcc -I/usr/include/python2.7 -lpython2.7 hello.c
#include <Python.h>
int main()
{
    Py_Initialize();

    PyRun_SimpleString("import os\n"
            "from os import mkdir, rmdir\n"
            "mkdir(\"tmp\")\n"
            "rmdir(\"tmp\")\n"
            "print \"We create dirs-we delete dirs\"\n");

    Py_Finalize();
    return 0;
}
